from .base import *
from app.utils.token import *


class ResponseToken(ResponseGlobal):
    access_token: str = None


class UuidToken(ResponseGlobal):
    token: str = None


class UserName(BaseModel):
    username: str = None


class AddUser(UserName):
    password: str = None


class ListUser(UserName):
    page: int = 1


class LoginUser(AddUser):
    token: str = None

# list_data = []
# dict_data = {'uid': None}
# for key, value in dict_data.items():

# k = ['username']

# # 分页
# c = a.offset((1 - 1) * 1).limit(1).all()
# print(c)
# for i in c:
#     for m in k:
#         name = getattr(i, m)
#         print(name)
